package de.wwi11b2.mjp.comicvineclient;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.View.OnClickListener;

public class ComicVineOnClickListener implements OnClickListener {
	
	private Context context = null;

	public ComicVineOnClickListener(Context packageContext) {

		context = packageContext;
		
	}

	@Override
	public void onClick(View v) {
		
		Uri uri = Uri.parse("http://www.comicvine.com");
		Intent intent = new Intent(Intent.ACTION_VIEW, uri);
		intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(intent);

	}

}
